//
//  MSHomeListCell.m
//  EPA
//
//  Created by lanou3g on 16/4/20.
//  Copyright © 2016年 myFree. All rights reserved.
//

#import "MSHomeListCell.h"
#import "MSHomeDetailModel.h"
@interface MSHomeListCell()
@property (weak, nonatomic) IBOutlet UILabel *titleLable;
@property (weak, nonatomic) IBOutlet UILabel *contentLable;
@property (weak, nonatomic) IBOutlet UIImageView *titleImageView;


@end

@implementation MSHomeListCell

- (void)awakeFromNib {
    // Initialization code
}
-(void)layoutSubviews {
    self.titleLable.text = self.model.title;
    self.contentLable.text = self.model.content;
    dispatch_async(dispatch_get_main_queue(), ^{
         self.titleImageView.image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:self.model.coverimg]]];
    });
   
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

@end
